package hust.music.util;

/**
 * DateConvert
 * 
 * @author Txazo
 * @since 1.0
 */
public class DecimalConvert {

	/**
	 * 小数转换
	 * 
	 * @param number 小数
	 * @return 转换后小数
	 */
	public static String convert(double number) {
		if (number == 10) {
			return String.valueOf(10);
		}
		int first = (int) number;
		int second = (int) ((number - first) * 10);

		return String.valueOf(first) + "." + second;
	}

}
